package com.ruoyi.project.system.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import com.sun.istack.NotNull;
import lombok.Data;

@Data
public class SmQuery extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    private Integer id;

    /**
     * 用户ID
     */
    @Excel(name = "用户ID")
    private Long userId;

    /**
     * 产品ID
     */
    @NotNull
    @Excel(name = "产品ID")
    private Integer productId;

    /**
     * 姓名
     */
    @Excel(name = "姓名")
    private String name;

    /**
     * 身份证
     */
    @Excel(name = "身份证")
    private String cardNo;

    /**
     * 电话
     */
    @Excel(name = "电话")
    private String tel;

    /**
     * 更多关键字
     */
    @Excel(name = "更多关键字")
    private String moreKeyword;

    /**
     * 查询结果
     */
    @Excel(name = "查询结果")
    private String queryInfo;

    /**
     * 设备标识
     */
    @Excel(name = "设备标识")
    private String sign;

    /**
     * 删除标志（0代表存在；2代表删除）
     */
    @Excel(name = "删除标志", readConverterExp = "0=代表存在；2代表删除")
    private String delFlag;

    public SmQuery() {
    }

    public SmQuery(Integer id, String queryInfo) {
        this.id = id;
        this.queryInfo = queryInfo;
    }

    public SmQuery(Integer id, String moreKeyword, boolean a) {
        this.id = id;
        this.moreKeyword = moreKeyword;
    }

    public SmQuery(Long userId, Integer productId, String tel, String moreKeyword, String queryInfo) {
        this.userId = userId;
        this.productId = productId;
        this.tel = tel;
        this.moreKeyword = moreKeyword;
        this.queryInfo = queryInfo;
    }
}
